package cn.jtfadmin.core;


import cn.jtfadmin.base.lang.config.module.DefaultModuleInfoDTO;
import cn.jtfadmin.base.lang.config.module.ModuleInfo;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;


@Configuration()
@ComponentScan(basePackageClasses = CoreApplication.class)
@EntityScan("cn.jtfadmin.core")
@EnableJpaRepositories
public class CoreApplication {

    @Bean
    public ModuleInfo coreModuleInfo(){
        return new DefaultModuleInfoDTO("core", "系统核心模块", "用户，组织机构，角色权限，定时任务", getClass().getPackage().getName());
    }

}
